<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Framework by Gaétan Collaud: Référence de la classe Gagatranslate</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&nbsp;associées</span></a></li>
      <li class="current"><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li><a href="hierarchy.html"><span>Hiérarchie&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="functions.html"><span>Champs&nbsp;de&nbsp;donnée</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe Gagatranslate</h1><!-- doxytag: class="Gagatranslate" --><!-- doxytag: inherits="Gagatemplate" -->
<p>Classe <a class="el" href="class_gagatranslate.html" title="Classe Gagatranslate.">Gagatranslate</a>.  
<a href="#_details">Plus de détails...</a></p>
<div class="dynheader">
Graphe d'héritage de Gagatranslate:</div>
<div class="dynsection">
 <div class="center">
  <img src="class_gagatranslate.png" usemap="#Gagatranslate_map" alt=""/>
  <map id="Gagatranslate_map" name="Gagatranslate_map">
<area href="class_gagatemplate.html" alt="Gagatemplate" shape="rect" coords="0,0,90,24"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#abee45a50874f4e72f08925af7b1747ad">generateXML</a> ($f)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crée les fichiers xml associé à un fichier template.  <a href="#abee45a50874f4e72f08925af7b1747ad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a25380ec410f03c996052516823df5b31">createNewXMLInstance</a> ($lg, $comment='')</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crée une nouvelle instance SimpleXMLElement en fonction de la langue.  <a href="#a25380ec410f03c996052516823df5b31"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#acc85c5f9e97dec343ff1f72b5b731094">compileLang</a> ($tpl)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compile les langue d'un fichier template.  <a href="#acc85c5f9e97dec343ff1f72b5b731094"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a35f90039b0b00796461bb9131d86ac65">getTDebug</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la variable de débugage de <a class="el" href="class_gagatranslate.html" title="Classe Gagatranslate.">Gagatranslate</a>.  <a href="#a35f90039b0b00796461bb9131d86ac65"></a><br/></td></tr>
<tr><td colspan="2"><h2>Fonctions membres publiques statiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a64a205994f2400f5da76e6915277311c">entity</a> ($t)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remplace les caractères spéciaux par leur entitié.  <a href="#a64a205994f2400f5da76e6915277311c"></a><br/></td></tr>
<tr><td colspan="2"><h2>Fonctions membres protégées</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#aa68d91fc8d826cc5de20d1f4dd8a0bfb">createParser</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Crée le parseur.  <a href="#aa68d91fc8d826cc5de20d1f4dd8a0bfb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a27296b98b8fd2d9a26e667c012c25bad">tInfosOpen</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Récupère les informations depuis le fichier d'infos.  <a href="#a27296b98b8fd2d9a26e667c012c25bad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#adf2a7c6b65b4ec14545fb70894be6141">tInfosWrite</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ecrit les informations dans le fichier d'infos.  <a href="#adf2a7c6b65b4ec14545fb70894be6141"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a4f950fbe8fbc7d67641a80d14758952a">display</a> ($f, $force=false)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Réécriture de la méthode display de la class <a class="el" href="class_gagatemplate.html" title="Classe Gagatemplate, c&#39;est la classe de base du moteur de template, c&#39;est...">Gagatemplate</a> pour y incorporé les variables de langue.  <a href="#a4f950fbe8fbc7d67641a80d14758952a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#abd058f27161219eee8e06449e5c96ade">isLangCompile</a> ($tpl)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indique si le fichier compilé pour la langue est valable.  <a href="#abd058f27161219eee8e06449e5c96ade"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#ac0f1d01a13ccfeb38399a74396cfdc9f">isXml</a> ($tpl)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indique si les fichiers xml sont à jour.  <a href="#ac0f1d01a13ccfeb38399a74396cfdc9f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a67f0bac8a47e3fabc25adbc67a53be1c">isNbLang</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Vérifie si la liste des langues est différente par rapport au dernier chargement.  <a href="#a67f0bac8a47e3fabc25adbc67a53be1c"></a><br/></td></tr>
<tr><td colspan="2"><h2>Attributs protégés</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#aa5e5909cf93a66cf06819c30e124cf4e">$_langDir</a> = 'lang/'</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[public] dossier contenant les fichiers de langues  <a href="#aa5e5909cf93a66cf06819c30e124cf4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a9951f6a3765247cce0e956dd70109208">$_listLang</a> = array('fr')</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[public] liste des langues présentes sur le site  <a href="#a9951f6a3765247cce0e956dd70109208"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#ad2734b08e1d966074ab069b594deeeb1">$_lang</a> = 'fr'</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[public] la langue de l'utilisateur actuel  <a href="#ad2734b08e1d966074ab069b594deeeb1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a0882bc1f9f78a68e1c747cbf65e1d764">$_forceLang</a> = false</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[public] Force la regénération des fichiers de langues et des fichiers compilés. A utiliser pendant le développement.  <a href="#a0882bc1f9f78a68e1c747cbf65e1d764"></a><br/></td></tr>
<tr><td colspan="2"><h2>Fonctions membres privées</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a46ee7e314eeb48db953525da035ea866">callbackGenerateXML</a> ($m, $oldXml, $lg)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Callback de la méthode generateXML.  <a href="#a46ee7e314eeb48db953525da035ea866"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a7568a3b15bbca745a5a13a0a94f8417e">openXMLFile</a> ($f, $lg)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ouvre l'ancien fichier xml sinon crée un nouveau.  <a href="#a7568a3b15bbca745a5a13a0a94f8417e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#aa3f603dfd9a7fd05181267de5bd211bb">writeXMLFile</a> ($f, $lg, $c)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ecrit le fichier XML.  <a href="#aa3f603dfd9a7fd05181267de5bd211bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a83adf92fab653f9cb5b3ee76ae2cb5b7">callbackCompileLang</a> ($f, $lg)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Callback de la méthode compileLang.  <a href="#a83adf92fab653f9cb5b3ee76ae2cb5b7"></a><br/></td></tr>
<tr><td colspan="2"><h2>Attributs privés</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#af3524ec49198897b97e09178d905c43d">$tInfos</a> = array()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Informations concernant les fichiers xml et les fichier de langue compilés.  <a href="#af3524ec49198897b97e09178d905c43d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a1fa37b5bd46ddec48165744ebdf10660">$tDebug</a> = array('xml' =&gt; array(), 'compile' =&gt; array())</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Informations de débugage.  <a href="#a1fa37b5bd46ddec48165744ebdf10660"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gagatranslate.html#a536677acc0163c53c067316a97456e6c">$comment</a> = ''</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Commentaire à l'intention du traducteur.  <a href="#a536677acc0163c53c067316a97456e6c"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Description détaillée</h2>
<p>Classe <a class="el" href="class_gagatranslate.html" title="Classe Gagatranslate.">Gagatranslate</a>. </p>
<p>Elle étend la classe <a class="el" href="class_gagatemplate.html" title="Classe Gagatemplate, c&#39;est la classe de base du moteur de template, c&#39;est...">Gagatemplate</a>. Elle permet de faire des traductions simplement est rapidement à la façon de GetText. </p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Gaétan Collaud </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>1.0 </dd></dl>
<hr/><h2>Documentation des fonctions membres</h2>
<a class="anchor" id="a83adf92fab653f9cb5b3ee76ae2cb5b7"></a><!-- doxytag: member="Gagatranslate::callbackCompileLang" ref="a83adf92fab653f9cb5b3ee76ae2cb5b7" args="($f, $lg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">callbackCompileLang </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>lg</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Callback de la méthode compileLang. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$f le fichier sans extention </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$lg la langue actuelle </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a46ee7e314eeb48db953525da035ea866"></a><!-- doxytag: member="Gagatranslate::callbackGenerateXML" ref="a46ee7e314eeb48db953525da035ea866" args="($m, $oldXml, $lg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">callbackGenerateXML </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>oldXml</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>lg</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Callback de la méthode generateXML. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$m les textes à traduire trouvé dans le fichier template </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>SimpleXMLElement</em>&nbsp;</td><td>$oldXml l'ancien fichier xml </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$lg la langue en cours </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>SimpleXMLElement le nouveau fichier xml </dd></dl>

</div>
</div>
<a class="anchor" id="acc85c5f9e97dec343ff1f72b5b731094"></a><!-- doxytag: member="Gagatranslate::compileLang" ref="acc85c5f9e97dec343ff1f72b5b731094" args="($tpl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">compileLang </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>tpl</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compile les langue d'un fichier template. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$tpl le fichier template correspondant </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a25380ec410f03c996052516823df5b31"></a><!-- doxytag: member="Gagatranslate::createNewXMLInstance" ref="a25380ec410f03c996052516823df5b31" args="($lg, $comment='')" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">createNewXMLInstance </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>lg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>comment</em> = <code>''</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crée une nouvelle instance SimpleXMLElement en fonction de la langue. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$lg la langue </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>SimpleXMLElement l'instance SimpleXMLElement </dd></dl>

</div>
</div>
<a class="anchor" id="aa68d91fc8d826cc5de20d1f4dd8a0bfb"></a><!-- doxytag: member="Gagatranslate::createParser" ref="aa68d91fc8d826cc5de20d1f4dd8a0bfb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">createParser </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crée le parseur. </p>

<p>Réimplémentée à partir de <a class="el" href="class_gagatemplate.html#aa68d91fc8d826cc5de20d1f4dd8a0bfb">Gagatemplate</a>.</p>

</div>
</div>
<a class="anchor" id="a4f950fbe8fbc7d67641a80d14758952a"></a><!-- doxytag: member="Gagatranslate::display" ref="a4f950fbe8fbc7d67641a80d14758952a" args="($f, $force=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">display </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>force</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Réécriture de la méthode display de la class <a class="el" href="class_gagatemplate.html" title="Classe Gagatemplate, c&#39;est la classe de base du moteur de template, c&#39;est...">Gagatemplate</a> pour y incorporé les variables de langue. </p>
<p>Créée aussi la variable indiquant la langue actuelle : $GG_langage </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$f le fichier template </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>boolean</em>&nbsp;</td><td>$force force l'affichage (dans le cas ou la propriété $display est à false). </td></tr>
  </table>
  </dd>
</dl>

<p>Réimplémentée à partir de <a class="el" href="class_gagatemplate.html#a4f950fbe8fbc7d67641a80d14758952a">Gagatemplate</a>.</p>

</div>
</div>
<a class="anchor" id="a64a205994f2400f5da76e6915277311c"></a><!-- doxytag: member="Gagatranslate::entity" ref="a64a205994f2400f5da76e6915277311c" args="($t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static entity </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>t</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remplace les caractères spéciaux par leur entitié. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$t le texte à convertir </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>String le texte convertit </dd></dl>

</div>
</div>
<a class="anchor" id="abee45a50874f4e72f08925af7b1747ad"></a><!-- doxytag: member="Gagatranslate::generateXML" ref="abee45a50874f4e72f08925af7b1747ad" args="($f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">generateXML </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>f</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Crée les fichiers xml associé à un fichier template. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$f le fichier template </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>Voir également:</b></dt><dd>$listLang </dd></dl>

</div>
</div>
<a class="anchor" id="a35f90039b0b00796461bb9131d86ac65"></a><!-- doxytag: member="Gagatranslate::getTDebug" ref="a35f90039b0b00796461bb9131d86ac65" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getTDebug </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retourne la variable de débugage de <a class="el" href="class_gagatranslate.html" title="Classe Gagatranslate.">Gagatranslate</a>. </p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>array la variable de débugage </dd></dl>

</div>
</div>
<a class="anchor" id="abd058f27161219eee8e06449e5c96ade"></a><!-- doxytag: member="Gagatranslate::isLangCompile" ref="abd058f27161219eee8e06449e5c96ade" args="($tpl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">isLangCompile </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>tpl</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Indique si le fichier compilé pour la langue est valable. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$tpl le fichier template </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>boolean si le fichier compilé est encore valide </dd></dl>

</div>
</div>
<a class="anchor" id="a67f0bac8a47e3fabc25adbc67a53be1c"></a><!-- doxytag: member="Gagatranslate::isNbLang" ref="a67f0bac8a47e3fabc25adbc67a53be1c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">isNbLang </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Vérifie si la liste des langues est différente par rapport au dernier chargement. </p>
<p>Si oui la compilation est forcée. </p>

</div>
</div>
<a class="anchor" id="ac0f1d01a13ccfeb38399a74396cfdc9f"></a><!-- doxytag: member="Gagatranslate::isXml" ref="ac0f1d01a13ccfeb38399a74396cfdc9f" args="($tpl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">isXml </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>tpl</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Indique si les fichiers xml sont à jour. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$tpl le fichier template </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>boolean si les fichiers xml sont à jour. </dd></dl>

</div>
</div>
<a class="anchor" id="a7568a3b15bbca745a5a13a0a94f8417e"></a><!-- doxytag: member="Gagatranslate::openXMLFile" ref="a7568a3b15bbca745a5a13a0a94f8417e" args="($f, $lg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">openXMLFile </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>lg</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ouvre l'ancien fichier xml sinon crée un nouveau. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$f fichier template correspondant </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>stirng</em>&nbsp;</td><td>$lg langue </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>SimpleXMLElement le fichier xml </dd></dl>

</div>
</div>
<a class="anchor" id="a27296b98b8fd2d9a26e667c012c25bad"></a><!-- doxytag: member="Gagatranslate::tInfosOpen" ref="a27296b98b8fd2d9a26e667c012c25bad" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">tInfosOpen </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Récupère les informations depuis le fichier d'infos. </p>

</div>
</div>
<a class="anchor" id="adf2a7c6b65b4ec14545fb70894be6141"></a><!-- doxytag: member="Gagatranslate::tInfosWrite" ref="adf2a7c6b65b4ec14545fb70894be6141" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">tInfosWrite </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ecrit les informations dans le fichier d'infos. </p>

</div>
</div>
<a class="anchor" id="aa3f603dfd9a7fd05181267de5bd211bb"></a><!-- doxytag: member="Gagatranslate::writeXMLFile" ref="aa3f603dfd9a7fd05181267de5bd211bb" args="($f, $lg, $c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">writeXMLFile </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>lg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>c</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ecrit le fichier XML. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$f le fichier template correspondant </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$lg la langue </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$c le contenu du fichier </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Documentation des champs</h2>
<a class="anchor" id="a0882bc1f9f78a68e1c747cbf65e1d764"></a><!-- doxytag: member="Gagatranslate::$_forceLang" ref="a0882bc1f9f78a68e1c747cbf65e1d764" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$_forceLang = false<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>[public] Force la regénération des fichiers de langues et des fichiers compilés. A utiliser pendant le développement. </p>

</div>
</div>
<a class="anchor" id="ad2734b08e1d966074ab069b594deeeb1"></a><!-- doxytag: member="Gagatranslate::$_lang" ref="ad2734b08e1d966074ab069b594deeeb1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$_lang = 'fr'<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>[public] la langue de l'utilisateur actuel </p>

</div>
</div>
<a class="anchor" id="aa5e5909cf93a66cf06819c30e124cf4e"></a><!-- doxytag: member="Gagatranslate::$_langDir" ref="aa5e5909cf93a66cf06819c30e124cf4e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$_langDir = 'lang/'<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>[public] dossier contenant les fichiers de langues </p>

</div>
</div>
<a class="anchor" id="a9951f6a3765247cce0e956dd70109208"></a><!-- doxytag: member="Gagatranslate::$_listLang" ref="a9951f6a3765247cce0e956dd70109208" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$_listLang = array('fr')<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>[public] liste des langues présentes sur le site </p>

</div>
</div>
<a class="anchor" id="a536677acc0163c53c067316a97456e6c"></a><!-- doxytag: member="Gagatranslate::$comment" ref="a536677acc0163c53c067316a97456e6c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$comment = ''<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Commentaire à l'intention du traducteur. </p>

</div>
</div>
<a class="anchor" id="a1fa37b5bd46ddec48165744ebdf10660"></a><!-- doxytag: member="Gagatranslate::$tDebug" ref="a1fa37b5bd46ddec48165744ebdf10660" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$tDebug = array('xml' =&gt; array(), 'compile' =&gt; array())<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Informations de débugage. </p>

</div>
</div>
<a class="anchor" id="af3524ec49198897b97e09178d905c43d"></a><!-- doxytag: member="Gagatranslate::$tInfos" ref="af3524ec49198897b97e09178d905c43d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$tInfos = array()<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Informations concernant les fichiers xml et les fichier de langue compilés. </p>

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>libs/<a class="el" href="_gaga_translate_8php.html">GagaTranslate.php</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Généré le Sun May 30 20:39:44 2010 pour Framework by Gaétan Collaud par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
